package com.ruoyi.chargepile.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充电记录表
 * </p>
 *
 * @author zxc
 * @since 2024-07-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChargeRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 充电桩id
     */
    private Integer chargePileId;

    /**
     * 充电开始时间
     */
    private Date chargeStartTime;

    /**
     * 充电结束时间
     */
    private LocalDateTime chargeEndTime;

    /**
     * 充电时长（单位小时）
     */
    private BigDecimal chargeTime;

    /**
     * 充电量
     */
    private BigDecimal chargeAmount;

    /**
     * 充电状态(0正在充电、1充电完成)
     */
    private String chargeStatus;


}
